package cn.desk.dialog.service.impl;

import java.util.HashMap;
import java.util.Map;

import cn.desk.commons.service.IBaseService;
import cn.desk.commons.service.impl.BaseServiceImpl;
import cn.desk.dialog.entity.Dialog;

public class DialogServiceImpl<T extends Dialog> extends BaseServiceImpl<T> implements IBaseService<T> {
	public void update(T t) throws cn.desk.commons.exception.DeskException {
		Map<String,Object> parameter=new HashMap<String, Object>();
//		T temp=baseDao.load(Dialog.class, t.getId());
		parameter.put("dialog", t);
		baseDao.exceHQL("delete from cn.desk.dialog.entity.Button where dialog =:dialog",parameter);
		super.update(t);
	}
}
